home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XAddConnectionWatch.z / XAddConnectionWatch
Encoding:
Text File  |  2002-10-03  |  7.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4.      XXXXAAAAddddddddCCCCoooonnnnnnnneeeeccccttttiiiioooonnnnWWWWaaaattttcccchhhh((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXAAAAddddddddCCCCoooonnnnnnnneeeeccccttttiiiioooonnnnWWWWaaaattttcccchhhh((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XAddConnectionWatch, XRemoveConnectionWatch,
  10.           XProcessInternalConnection, XInternalConnectionNumbers -
  11.           handle Xlib internal connections
  12.  
  13.      SSSSYYYYNNNNTTTTAAAAXXXX
  14.           typedef void (*XConnectionWatchProc)(_d_i_s_p_l_a_y, _c_l_i_e_n_t__d_a_t_a,
  15.           _f_d, _o_p_e_n_i_n_g, _w_a_t_c_h__d_a_t_a)
  16.                 Display *_d_i_s_p_l_a_y;
  17.                 XPointer _c_l_i_e_n_t__d_a_t_a;
  18.                 int _f_d;
  19.                 Bool _o_p_e_n_i_n_g;
  20.                 XPointer *_w_a_t_c_h__d_a_t_a;
  21.  
  22.           Status XAddConnectionWatch(_d_i_s_p_l_a_y, _p_r_o_c_e_d_u_r_e, _c_l_i_e_n_t__d_a_t_a)
  23.                 Display *_d_i_s_p_l_a_y;
  24.                 XWatchProc _p_r_o_c_e_d_u_r_e;
  25.                 XPointer _c_l_i_e_n_t__d_a_t_a;
  26.  
  27.           Status XRemoveConnectionWatch(_d_i_s_p_l_a_y, _p_r_o_c_e_d_u_r_e,
  28.           _c_l_i_e_n_t__d_a_t_a)
  29.                 Display *_d_i_s_p_l_a_y;
  30.                 XWatchProc _p_r_o_c_e_d_u_r_e;
  31.                 XPointer _c_l_i_e_n_t__d_a_t_a;
  32.  
  33.           void XProcessInternalConnection(_d_i_s_p_l_a_y, _f_d)
  34.                 Display *_d_i_s_p_l_a_y;
  35.                 int _f_d;
  36.  
  37.           void XProcessInternalConnection(_d_i_s_p_l_a_y, _f_d)
  38.                 Display *_d_i_s_p_l_a_y;
  39.                 int _f_d;
  40.  
  41.           Status XInternalConnectionNumbers(_d_i_s_p_l_a_y, _f_d__r_e_t_u_r_n,
  42.           _c_o_u_n_t__r_e_t_u_r_n)
  43.                 Display *_d_i_s_p_l_a_y;
  44.                 int **_f_d__r_e_t_u_r_n;
  45.                 int *_c_o_u_n_t__r_e_t_u_r_n;
  46.  
  47.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  48.           _c_l_i_e_n_t__d_a_t_a
  49.                     Specifies the additional client data.
  50.  
  51.           _c_o_u_n_t__r_e_t_u_r_n
  52.                     Returns the number of file descriptors.
  53.  
  54.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  55.  
  56.           _f_d        Specifies the file descriptor.
  57.  
  58.           _f_d__r_e_t_u_r_n Returns the file descriptors.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXAAAAddddddddCCCCoooonnnnnnnneeeeccccttttiiiioooonnnnWWWWaaaattttcccchhhh((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXAAAAddddddddCCCCoooonnnnnnnneeeeccccttttiiiioooonnnnWWWWaaaattttcccchhhh((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           _p_r_o_c_e_d_u_r_e Specifies the procedure to be called.
  75.  
  76.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  77.           The _X_A_d_d_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h function registers a procedure to be
  78.           called each time Xlib opens or closes an internal connection
  79.           for the specified display.  The procedure is passed the
  80.           display, the specified client_data, the file descriptor for
  81.           the connection, a Boolean indicating whether the connection
  82.           is being opened or closed, and a pointer to a location for
  83.           private watch data.  If opening is _T_r_u_e, the procedure can
  84.           store a pointer to private data in the location pointed to
  85.           by watch_data; when the procedure is later called for this
  86.           same connection and opening is _F_a_l_s_e, the location pointed
  87.           to by watch_data will hold this same private data pointer.
  88.  
  89.           This function can be called at any time after a display is
  90.           opened.  If internal connections already exist, the
  91.           registered procedure will immediately be called for each of
  92.           them, before _X_A_d_d_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h returns.
  93.           _X_A_d_d_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h returns a nonzero status if the
  94.           procedure is successfully registered; otherwise, it returns
  95.           zero.
  96.  
  97.           The registered procedure should not call any Xlib functions.
  98.           If the procedure directly or indirectly causes the state of
  99.           internal connections or watch procedures to change, the
  100.           result is not defined.  If Xlib has been initialized for
  101.           threads, the procedure is called with the display locked and
  102.           the result of a call by the procedure to any Xlib function
  103.           that locks the display is not defined unless the executing
  104.           thread has externally locked the display using _X_L_o_c_k_D_i_s_p_l_a_y.
  105.  
  106.           The _X_R_e_m_o_v_e_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h function removes a previously
  107.           registered connection watch procedure.  The client_data must
  108.           match the client_data used when the procedure was initially
  109.           registered.
  110.  
  111.  
  112.           The _X_P_r_o_c_e_s_s_I_n_t_e_r_n_a_l_C_o_n_n_e_c_t_i_o_n function processes input
  113.           available on an internal connection.  This function should
  114.           be called for an internal connection only after an operating
  115.           system facility (for example, _s_e_l_e_c_t or _p_o_l_l) has indicated
  116.           that input is available; otherwise, the effect is not
  117.           defined.
  118.  
  119.           The _X_P_r_o_c_e_s_s_I_n_t_e_r_n_a_l_C_o_n_n_e_c_t_i_o_n function processes input
  120.           available on an internal connection.  This function should
  121.           be called for an internal connection only after an operating
  122.           system facility (for example, _s_e_l_e_c_t or _p_o_l_l) has indicated
  123.           that input is available; otherwise, the effect is not
  124.           defined.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXAAAAddddddddCCCCoooonnnnnnnneeeeccccttttiiiioooonnnnWWWWaaaattttcccchhhh((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))XXXXAAAAddddddddCCCCoooonnnnnnnneeeeccccttttiiiioooonnnnWWWWaaaattttcccchhhh((((3333XXXX11111111))))
  137.  
  138.  
  139.  
  140.           The _X_I_n_t_e_r_n_a_l_C_o_n_n_e_c_t_i_o_n_N_u_m_b_e_r_s function returns a list of
  141.           the file descriptors for all internal connections currently
  142.           open for the specified display.  When the allocated list is
  143.           no longer needed, free it by using _X_F_r_e_e.  This functions
  144.           returns a nonzero status if the list is successfully
  145.           allocated; otherwise, it returns zero.
  146.  
  147.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  148.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 10/3/02)
  196.  
  197.  
  198.  
  199.